
let initialState = ["你走路是不是经常撞人,要不然怎么撞进了我的心里", "你是不是会弹钢琴?要不然,怎么拨弄了我的心弦"]

export default function (state = initialState, action) {
    let { type, payload } = action;

    switch (type) {
        case "ADD_CHAT":
            return [payload, ...state]
        default:
            return [...state]
    }
}